Make publishDiagnostics faster by using cached variable
authorTheodor Thornhill <theo@thornhill.no>
Fri, 19 Apr 2024 18:40:25 +0000 (20:40 +0200)
committerTheodor Thornhill <theo@thornhill.no>
Fri, 19 Apr 2024 20:21:38 +0000 (22:21 +0200)
commit49ef173b0287e17273e4476df16dca5f2196b11c
tree965fe6ee54b2cc69684354485ee19d30c74e2e09
parent82775f21413681b09c888527b5d2fb15354f0793
Make publishDiagnostics faster by using cached variable

* lisp/progmodes/eglot.el (eglot--cached-tdi): Move variable.
(eglot-handle-notification): Expose 'server' and search through managed
buffers for a cached textDocumentIdentifier, which has a file-truename
resolved path.
* test/lisp/progmodes/eglot-tests.el (eglot-test-basic-symlink): Add
regression test for symlink behavior
lisp/progmodes/eglot.el
test/lisp/progmodes/eglot-tests.el